package cn.txm.order.service.impl;

import cn.txm.basic.service.impl.BaseServiceImpl;
import cn.txm.order.domain.OrderAddress;
import cn.txm.order.mapper.OrderAddressMapper;
import cn.txm.order.service.IOrderAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderAddressServiceImpl extends BaseServiceImpl<OrderAddress> implements IOrderAddressService {
    @Autowired
    private OrderAddressMapper orderAddressMapper;

    /**
     * 前台：通过orderSn查询订单地址
     * @param orderSn
     * @return
     */
    @Override
    public OrderAddress loadOrderAddressByOrderSn(String orderSn) {
        return orderAddressMapper.loadOrderAddressByOrderSn(orderSn);
    }
}
